Ext.define('HRMobile.model.Dependent', {
    extend: 'Ext.data.Model',
    config: {
     fields: ['edName',
              'edRelationshipType',
              'edDateOfBirth',
              {name: 'fullRelationshipType',
        	  convert: function(value, record) {
        		  var fullGRelationshipType = record.get('edRelationshipType');
                  //0 means child, 1 means others ?!
                  if (fullGRelationshipType == 0)
                	  return 'Child';
                  else
                	  return 'Other';
              }}
              ]
    }
});